<!-- OfficeCall List -->
<g:set var="title" value="Office Call List" />
<head>
  <meta name="layout" content="app" />
  <gui:resources components="dataTable"/>
  <link rel="stylesheet" href="${resource(dir:'css/jquery-grid',file:'ui.jqgrid.css')}" />
  <g:javascript library="jquery-grid/i18n/grid.locale-en"/>
  <g:javascript library="jquery-grid/jquery.jqGrid.min"/>
  <g:javascript library="jquery-grid/jquery.fmatter"/>
  <g:javascript library="jqGridOfficeCallList"/>
  <script type="text/javascript">
    // Setting variables from the params to be available in the js files.
    var companyId = "${companyId}";
  </script>
  <title>${title}</title>
</head>
<body>
  <div class="body">
    <h1>${title}</h1>
    <g:render template="/common/flashMessage" />
    <div style="width:1114px;">
      <table id="officeCallList"></table>
    </div>

    <div id="officeCallListPager"></div>

    <g:if test="${companyId}">
      <tdcmw:linkButton controller="officeCall" action="create" params="[companyId:company?.id]" label="Create New Office Call" />
    </g:if>
  </div>
</body>
